package com.nexgo.payment.action.online.upload;

import com.nexgo.payment.App;
import com.nexgo.payment.R;
import com.nexgo.payment.constrant.TransType;
import com.nexgo.payment.databases.DataSource;
import com.nexgo.payment.databases.TransRecord;

import java.util.List;

/**
 * Created by xiaox on 2017/9/14.
 */

/**
 * 磁条卡离线上送
 */
class UploadMagOffline extends AbsUploadOffline {

    UploadMagOffline(DataSource repository) {
        super(repository);
    }

    @Override
    List<TransRecord> getOfflineTransRecords() {
        return mRepository.getMagOfflineNeverUploadTransRecords();
    }

    @Override
    TransType getTransType() {
        return TransType.UPLOAD_MAG_OFFLINE;
    }

    @Override
    String getTip() {
        return App.sContext.getString(R.string.upload_mag_offline);
    }
}
